#define _CRT_SECURE_NO_WARNINGS
#define MAX_DIGITS 50
#include<stdio.h>
#define N 10

int main()
{ 
    int a[MAX_DIGITS];
    int total = 0;
    int b[N];
    int i = 0;
    for (i = 0; i < N; i++)
    {
        scanf("%d", &b[i]);
        int j = 0;
        for (j = 0; j < b[i]; j++)
        {
            a[total++] = i;
        }
    }

    int min = 0; 
   
    while (min<total && a[min] == 0)
    {
        min++;
    }
   
    printf("%d", a[min]);

    for (i = min; i < total - 1; i++)
    {
        a[i] = a[i + 1];
    }

    for (i = 0; i < total - 1; i++)
    {
        printf("%d", a[i]);
    }

}